function bindHelpKey()
	bindKey(source, "F4", "down", openHelpWindow) -- change this to F1 when you don't need freeroam any more
end

function openHelpWindow()
	GUIEditor_Window = {}
	GUIEditor_Memo = {}
	GUIEditor_Grid = {}
	GUIEditor_Scrollbar = {}

    GUIEditor_Window[1] = guiCreateWindow(0.2539,0.1432,0.4609,0.6354,"Help",true)
    guiSetAlpha(GUIEditor_Window[1],0.8)
    guiWindowSetSizable(GUIEditor_Window[1],false)
    GUIEditor_Scrollbar[1] = guiCreateScrollBar(0.961,0.0779,0.0237,0.8832,false,true,GUIEditor_Window[1])
    GUIEditor_Memo[1] = guiCreateMemo(0.2525,0.0779,0.7017,0.8832,"",true,GUIEditor_Window[1])
    GUIEditor_Grid[1] = guiCreateGridList(0.0186,0.0758,0.2169,0.8852,true,GUIEditor_Window[1])
    guiGridListSetSelectionMode(GUIEditor_Grid[1],2)
	guiGridListSetScrollBars(GUIEditor_Grid[1], false, true)
	
    guiGridListAddColumn(GUIEditor_Grid[1],"Choose a topic:",0.2)
	
    for i = 1, 8 do
        guiGridListAddRow(GUIEditor_Grid[1])
	end
	
    guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Jobs")

    guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Gangs")

    guiGridListSetItemText(GUIEditor_Grid[1],2,1,"Keybinds")

    guiGridListSetItemText(GUIEditor_Grid[1],3,1,"Keybinds & Commands")
end



addEventHandler("onPlayerSpawn", getRootElement(), bindHelpKey)